package com.dg.river.netty.axle.msg2dev;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import java.util.Date;

/**
 * 车辆信息推送
 */
@JsonPropertyOrder({"vlpc", "vlp", "stationId", "laneId", "capTime", "vprImg",
        "axleCnt", "vehType", "axleImg", "lateralImg", "vehLength", "vehWidth", "vehHeight", "vehSpeed", "sendCnt", "code"})
public class Msg21_AxleData extends BaseMsg {
    //车牌颜色;0:蓝；1:黄；2:黑；2:白；4:渐变绿；5:黄绿双拼
    //6:蓝白渐变；7:临时牌照；９：未确定；11:绿；12:红
    private short vlpc;
    //VLP	STR(12)	车牌号(当车辆无车牌时，上送“默A00000”,颜色9)
    private String vlp;
    //收费站编码
    private String stationId;
    //绑定车道编码
    private String laneId;
    //抓拍时间
    private Date capTime;
    //车牌抓拍图
    private byte vprImg[];
    //车轴数量
    private int axleCnt;
    //检测车型
    private short vehType;
    //车轴检测图
    private byte axleImg[];
    //车辆侧面图
    private byte lateralImg[];
    //车长
    private int vehLength;
    //车宽
    private int vehWidth;
    //车高
    private int vehHeight;
    //车速　
    private int vehSpeed;
    //报文上送次数
    private int sendCnt;
    //唯一通信标识
    private String code;

    public short getVlpc() {
        return vlpc;
    }

    public void setVlpc(short vlpc) {
        this.vlpc = vlpc;
    }

    public String getVlp() {
        return vlp;
    }

    public void setVlp(String vlp) {
        this.vlp = vlp;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public String getLaneId() {
        return laneId;
    }

    public void setLaneId(String laneId) {
        this.laneId = laneId;
    }

    public Date getCapTime() {
        return capTime;
    }

    public void setCapTime(Date capTime) {
        this.capTime = capTime;
    }

    public byte[] getVprImg() {
        return vprImg;
    }

    public void setVprImg(byte[] vprImg) {
        this.vprImg = vprImg;
    }

    public int getAxleCnt() {
        return axleCnt;
    }

    public void setAxleCnt(int axleCnt) {
        this.axleCnt = axleCnt;
    }

    public short getVehType() {
        return vehType;
    }

    public void setVehType(short vehType) {
        this.vehType = vehType;
    }

    public byte[] getAxleImg() {
        return axleImg;
    }

    public void setAxleImg(byte[] axleImg) {
        this.axleImg = axleImg;
    }

    public byte[] getLateralImg() {
        return lateralImg;
    }

    public void setLateralImg(byte[] lateralImg) {
        this.lateralImg = lateralImg;
    }

    public int getVehLength() {
        return vehLength;
    }

    public void setVehLength(int vehLength) {
        this.vehLength = vehLength;
    }

    public int getVehWidth() {
        return vehWidth;
    }

    public void setVehWidth(int vehWidth) {
        this.vehWidth = vehWidth;
    }

    public int getVehHeight() {
        return vehHeight;
    }

    public void setVehHeight(int vehHeight) {
        this.vehHeight = vehHeight;
    }

    public int getVehSpeed() {
        return vehSpeed;
    }

    public void setVehSpeed(int vehSpeed) {
        this.vehSpeed = vehSpeed;
    }

    public int getSendCnt() {
        return sendCnt;
    }

    public void setSendCnt(int sendCnt) {
        this.sendCnt = sendCnt;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Msg21_AxleData{" +
                "vlpc=" + vlpc +
                ", vlp='" + vlp + '\'' +
                ", stationId='" + stationId + '\'' +
                ", laneId='" + laneId + '\'' +
                ", capTime=" + capTime +
                ", vprImglen=" + vprImg.length +
                ", axleCnt=" + axleCnt +
                ", vehType=" + vehType +
                ", axleImglen=" + axleImg.length +
                ", lateralImglen=" + lateralImg.length +
                ", vehLength=" + vehLength +
                ", vehWidth=" + vehWidth +
                ", vehHeight=" + vehHeight +
                ", vehSpeed=" + vehSpeed +
//                ", sendCnt=" + sendCnt +
                '}';
    }
}
